package com.twl.app.base.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * 前台可查询状态
 * @author uatzhangxc
 *
 */

@Entity
@org.hibernate.annotations.Entity(dynamicInsert = true,dynamicUpdate = true)
@Table(name = "openstate")
@SequenceGenerator(name = "instance_sequence", sequenceName = "SEQ_OPENSTATE_DID", allocationSize = 1)
public class OpenState implements Serializable{
	
	
	private static final long serialVersionUID = 1L;
	
	private Integer id ;		//主键
	private String openDate ;  //被锁住的考勤日期
	private String openCheck ;	//记录状态  1允许被查到     0不允许被查到
	private Integer counting ;  //记录导入时计数
	
	

	public OpenState(Integer id, String openDate, String openCheck,
			Integer counting) {
		super();
		this.id = id;
		this.openDate = openDate;
		this.openCheck = openCheck;
		this.counting = counting;
	}

	public OpenState() {
		super();
	}

	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator="instance_sequence")
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "openDate" )
	public String getOpenDate() {
		return openDate;
	}

	public void setOpenDate(String openDate) {
		this.openDate = openDate;
	}
	@Column(name = "openCheck" )
	public String getOpenCheck() {
		return openCheck;
	}

	public void setOpenCheck(String openCheck) {
		this.openCheck = openCheck;
	}

	
	@Column(name = "counting" )
	public Integer getCounting() {
		return counting;
	}

	public void setCounting(Integer counting) {
		this.counting = counting;
	}

	@Override
	public String toString() {
		return "OpenState [id=" + id + ", openDate=" + openDate
				+ ", openCheck=" + openCheck + ", counting=" + counting + "]";
	}

	
	
	
}
